import request from "@/utils/request";

// 查询产品条码属性列表
export function listBarcodeAttribute(query) {
  return request({
    url: "/ems/barcodeAttribute/list",
    method: "get",
    params: query,
  });
}

// 查询产品条码属性详细
export function getBarcodeAttribute(emsTransId) {
  return request({
    url: "/ems/barcodeAttribute/" + emsTransId,
    method: "get",
  });
}

// 新增产品条码属性
export function addBarcodeAttribute(data) {
  return request({
    url: "/ems/barcodeAttribute",
    method: "post",
    data: data,
  });
}

// 修改产品条码属性
export function updateBarcodeAttribute(data) {
  return request({
    url: "/ems/barcodeAttribute",
    method: "put",
    data: data,
  });
}

// 删除产品条码属性
export function delBarcodeAttribute(emsTransId) {
  return request({
    url: "/ems/barcodeAttribute/" + emsTransId,
    method: "delete",
  });
}

// 导出产品条码属性
export function exportBarcodeAttribute(query) {
  return request({
    url: "/ems/barcodeAttribute/export",
    method: "get",
    params: query,
  });
}
